import { get, post } from "@/utils/request";
// 分页查询
export function queryPageList(query) {
  return get("/mgxxServer/dbBackup/list", query);
}

//修改配置字典
export function editBackupConfig(map) {
  return post("/mgxxServer/dbBackup/editBackupConfig", map );
}

//手动备份
export function backup(query) {
  return get("/mgxxServer/dbBackup/backup", query);
}

//备份还原
export function restore(id) {
  return get("/mgxxServer/dbBackup/restore", { id });
}

// 清除备份
export function deleteDatas(ids) {
  return get("/mgxxServer/dbBackup/deleteBatch", { ids });
}


